package com.github.thinwonton.spring.source.analysis;

import org.aopalliance.intercept.MethodInterceptor;
import org.aopalliance.intercept.MethodInvocation;

/**
 * 通知
 */
public class SleepAdvice implements MethodInterceptor {
    public Object invoke(MethodInvocation invocation) throws Throwable {
        System.out.println("before");
        Object retVal = invocation.proceed();
        System.out.println("after");
        return retVal;
    }
}
